package com.study.bigwork.wrongQuestion.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.study.bigwork.entity.WrongQuestion;
import com.study.bigwork.homework.dao.HomeworkDao;
import com.study.bigwork.wrongQuestion.dao.WrongQuestionDao;

@Service
@Transactional(readOnly=false)
public class WrongQuestionService {
	@Resource
	private WrongQuestionDao wrongQuestionDao;
	public boolean addWrongQuestion(WrongQuestion wrongQuestion) {
		wrongQuestionDao.addWrongQuestion(wrongQuestion);
		return true;
	}
	public List<WrongQuestion> getWrongQuestions(String questionType,String id){
		return wrongQuestionDao.getWrongQuestions(questionType, id);
		
	}
	
}
	
